

/**
 * 为id为container的div写入消息信息
 */
function message(head, message, type) {
	var all = $("<div class='ui middle aligned center aligned grid' id='message'></div>");
	var column = $("<div class='column'></div>");
	var messageI = $("<div class='ui message'></div>");
	if (type != "") {
		messageI.addClass(type);
	}
	messageI.text(message);
	var headI = $("<h4 class='ui horizontal divider header'></h4>");

	var ico = $("<i class='comment icon'></i>");
	headI.text(head);
	headI.prepend(ico);
	column.append(headI);
	column.append(messageI);
	all.append(column);
	$("#container").empty();
	$("#container").append(all);
}
